.index-page {
  padding: 0 20upx;
  // background: linear-gradient(180deg, #dcffed 100upx, #f7f7f7 300upx);

  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    padding: 10px 12px 8px 12px;

    .location-selector {
      display: flex;
      align-items: center;
      font-size: 18px;
      font-weight: bold;
      margin-right: 8px;
      color: #222;

      text {
        font-size: 18px;
        font-weight: bold;
        color: #222;
      }

      uni-icons {
        margin-left: 4px;
        line-height: 14px;
        font-size: 14px;
      }
    }

    .search-bar {
      flex: 1;
      min-width: 180px;
      display: flex;
      align-items: center;
      background-color: #fff;
      border-radius: 20px;
      padding: 6px 16px;
      margin: 0 12px 0 0;
      box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.02);

      .placeholder {
        color: #bbb;
        margin-left: 5px;
        font-size: 15px;
      }
    }

    .switch-role {
      display: flex;
      flex-direction: column;
      align-items: center;
      font-size: 10px;
      color: #333;
      margin-left: 4px;
    }
  }

  .page-content {
    // No extra style needed here, padding is inline
  }

  .banner-section {
    position: relative;
    padding: 16upx 0;

    .swiper-item-container {
      height: 100%;
      box-sizing: border-box;
    }

    .swiper-item-wrapper {
      position: relative;
      width: 100%;
      height: 100%;
      border-radius: 16upx;
      overflow: hidden;
    }

    .banner-swiper {
      height: 294upx;
    }

    .banner-image {
      width: 100%;
      height: 100%;
    }

    .banner-content {
      position: absolute;
      top: 50%;
      left: 24px;
      transform: translateY(-50%);
      z-index: 2;

      .banner-title {
        font-size: 18px;
        font-weight: bold;
        color: #333;
        display: block;
      }

      .banner-subtitle {
        font-size: 13px;
        color: #666;
        margin-top: 8px;
        display: block;
      }

      .banner-button {
        display: inline-flex;
        align-items: center;
        background-color: #0052d9;
        color: #fff;
        padding: 6px 12px;
        border-radius: 15px;
        font-size: 13px;
        margin-top: 15px;
      }
    }

    .custom-indicator {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 18px;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 10;
      pointer-events: none;

      .indicator-dot {
        max-width: 8px;
        height: 8upx;
        background: #fff;
        border-radius: 50%;
        margin: 0 8upx;
        opacity: 0.5;
        transition: all 0.2s;

        &.active {
          width: 24upx;
          height: 8upx;
          border-radius: 8upx;
          opacity: 1;
          background: #fff;
        }
      }
    }
  }

  .grid-menu-section {
    background-color: #fff;
    padding-top: 30upx;
    padding-bottom: 10upx;
    border-radius: 16upx;
    position: relative;

    .grid-swiper {
      // min-height: 200upx;
      // height: auto !important;
    }

    .grid {
      display: flex;
      flex-wrap: wrap;

      .grid-item {
        width: 20%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 30upx;

        .grid-icon {
          width: 80upx;
          height: 80upx;
          margin-bottom: 8upx;
        }

        .grid-text {
          font-family: "PingFang SC", "苹方-简", "Microsoft YaHei", Arial,
            sans-serif;
          text-align: center;
          color: rgba(0, 0, 0, 0.85);
          font-size: 24upx;
          line-height: 40upx;
        }
      }
    }

    .custom-grid-indicator {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 20upx;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 10;
      pointer-events: none;
      border-radius: 100upx;

      .grid-indicator-dot {
        width: 8upx;
        height: 8upx;
        background: #d8d8d8;
        border-radius: 50%;
        margin: 0 8upx;
        opacity: 0.7;
        transition: all 0.2s;

        &.active {
          width: 24upx;
          height: 8upx;
          border-radius: 8upx;
          opacity: 1;
          background: #b0b0b0;
        }
      }
    }
  }

  .job-list-section {
    padding: 0;
    border-radius: 4px 4px 0 0;

    .job-tabs-container {
      margin-bottom: 12px;
      background: #fff;
      border-radius: 8px;
      box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
      padding: 12px 10px;
      box-sizing: border-box;
    }

    .main-tabs,
    .sub-tabs {
      display: flex;
      align-items: center;
    }

    // .main-tabs {
    //   border-bottom: 1px solid rgba(221, 221, 221, 1);
    // }

    .sub-tabs {
      margin-top: 12px;
    }

    .tabs-scroll {
      flex: 1;
      white-space: nowrap;
      overflow-x: auto;

      /* 隐藏滚动条 */
      &::-webkit-scrollbar {
        display: none;
      }
    }

    .main-tab-item {
      display: inline-block;
      margin-right: 50upx;
      font-size: 26upx;
      color: rgba(0, 0, 0, 0.8);
      font-weight: 500;
      position: relative;
      padding-bottom: 20upx;
      // border-radius: 16upx;

      &.active {
        font-size: 30upx;
        font-weight: 600;
        color: rgba(17, 17, 17, 1);

        &::after {
          content: "";
          position: absolute;
          bottom: 0;
          left: 0;
          right: 0;
          height: 4upx;
          background-color: rgba(96, 205, 147, 1);
          border-radius: 16upx;
        }
      }
    }

    .sub-tab-item {
      display: inline-block;
      padding: 0upx 22upx;
      line-height: 48upx;
      height: 48upx;

      font-size: 24upx;
      color: #666;
      background-color: #f1f2f6;

      &.active {
        color: rgba(16, 157, 91, 1);
        background-color: rgba(233, 252, 248, 1);
        font-weight: 500;
      }
    }

    .add-button {
      padding: 5px;
      background-color: #f1f2f6;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .filter-button {
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 48upx;
      font-size: 24upx;
      color: rgba(51, 51, 51, 1);
    }
  }
}

.subsidy-company {
  div {
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.04);
  }
}
.logo {
  width: 214upx;
  height: 48upx;
}
.searchContent {
  width: 100%;
  padding: 0 30upx;
}
.serchBox {
  border: 1px solid #bcebe5;
  background: #fff;
  border-radius: 16upx;
  width: 100%;
  height: 70upx;
  line-height: 70upx;

  .searchBtn {
    width: 100upx;
    background: linear-gradient(270deg, #34a76c 0%, #30c075 100%);
    box-shadow: 0px 6upx 24upx 0px rgba(0, 78, 52, 0.12);
    border-radius: 100upx;
  }
  .searchInput {
    max-width: calc(100% - 100upx);
    input {
      width: 100%;
    }
  }
}
.navTop {
  position: relative;
}
.navTopFix {
  top: 0;
  left: 0;
  width: 100%;
  position: fixed;
  background: #fff;
  // padding: 0 30upx;
  z-index: 9999;
}
.tabTitle {
  height: 100upx;
  line-height: 100upx;
  .activeCur {
    color: #37af71;
    border-bottom: 4upx solid #37af71;
    // border-radius: 50upx;
  }
}
